package com.java.zhuiyun.api.playerinformation.service;

import com.java.zhuiyun.api.playerinformation.entity.PlayerInformation;
import com.java.zhuiyun.api.playerinformation.model.AppUser;
import com.java.zhuiyun.api.propmgt.entity.PropMgt;
import com.java.zhuiyun.common.response.CommonResult;
import com.java.zhuiyun.util.pageUtil.PageRequest;

/**
 * (PlayerInformation)表服务接口
 *
 * @author makejava
 * @since 2023-09-14 10:35:42
 */
public interface PlayerInformationService {

    /*
    * @Author wuwan
    * @Description 查询所有用户
    * @Date 2023/9/18 11:30
    * @Return
    * @param null
    */
    CommonResult selectPlayerInformation(PageRequest pageRequest,String name);
    /*
    * @Author wuwan
    * @Description 微信用户登录注册
    * @Date 2023/9/18 11:30
    * @Return
    * @param null
    */
    CommonResult getOpenid(AppUser code);
    /*
    * @Author wuwan
    * @Description 进入页面刷新最后登录时间
    * @Date 2023/9/18 19:56
    * @Return
    * @param null
    */
    CommonResult uploginTime(String openid);

    /*
     * @Author WX
     * @Description 冒险关卡次数修改方法
     * @Date 2023/9/18 9:49
     * @Return
     * @param null
     */
    int updateNumberOfModifications();
    /*
    * @Author wuwan
    * @Description 角色升级规则
    * @Date 2023/9/26 9:01
    * @Return
    */
    CommonResult upPlayerLevel(PlayerInformation playerInformation);
    /*
    * @Author wuwan
    * @Description 房屋升级规则
    * @Date 2023/9/26 15:02
    * @Return
    */
    CommonResult upPlayerHouseLevel(PlayerInformation playerInformation);
    /**
     * @Author 杨友朋
     * @Description TODO 单查
     * @Date 2023/9/27 15:52
     * @Return
     */
    AppUser selectByUserId(String openId);

    /*
     * @Author WX
     * @Description 根据openid查询出用户的信息数量
     * @Date 2023/9/27 9:38
     * @Return
     * @param openid
     */
    CommonResult queryByUser(String openid);
    /*
     * @Author wuwan
     * @Description 修改冒险次数
     * @Date 2023/9/27 9:32
     * @Return
     */
    int queryByOpenId(String openid);
    /*
     * @Author WX
     * @Description 修改冒险通关次数
     * @Date 2023/10/8 9:39
     * @Return
     * @param null
     */
    int updateAdventureIdNumber(String openid);

    CommonResult nextLevel(AppUser appUser);
    /*
     * @Author WX
     * @Description 冒险通关成功后操作
     * @Date 2023/10/9 10:16
     * @Return
     * @param openid
     */
    PropMgt passingLevelSuccessful(String openid);

    /*
     * @Author WX
     * @Description 冒险通一个小关卡操作
     * @Date 2023/10/17 8:58
     * @Return
     * @param id
     */
    CommonResult adventurePassOneLevelOperation(int id);
    /**
    * @Author MJL
    * @Description todo 看图猜成语关卡机制
    * @Date 2023/10/19 14:43
    * @Return  * @param null
    */
    CommonResult pictureLevelUp(PlayerInformation playerInformation);

    /**
     * @Author 杨友朋
     * @Description TODO 成语接龙通一个小关卡操作
     * @Date 2023/10/20 9:38
     * @Return CommonResult
     * @param id,correctlyAnsweredQuestions,correctlyAnsweredWord
     */
    CommonResult idiomGOGOGO(int id, Integer correctlyAnsweredQuestions, Integer correctlyAnsweredWord);
}
